home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Financial / RISK / Source / Simulator.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  42 lines

  1.  
  2. #import <objc/Object.h>
  3.  
  4. @interface Simulator:Object
  5. {
  6.     id    costForm;
  7.     id    expProfitForm;
  8.     id    monthNrField;
  9.     id    evalForm;
  10.     id    inflationLossField;
  11.     id    succProbForm;
  12.     id    capitalField;
  13.     id    profitField;
  14.     id    inflationField;
  15.         id  meanProfitField;
  16.         id  meanPercentProfitField;
  17.         id theRanGen; // random generator
  18.         int monthNr, actionNumber;
  19.         double inflation, percentProfitSum, meanPercentProfit; // in percent
  20.         double capital, profit, profitSum, meanProfit; // in real value 
  21.         double inflationLoss; // in real value
  22.         double cost[5]; // of action
  23.         double probability[5]; // of action`s success in percent
  24.         double expProfit[5]; // profit on success
  25.         double eval[5]; // chance evaluation: probable profit
  26.         // action characteristics:
  27.         double chosenCost, chosenProbab, chosenProfit; 
  28. }
  29.  
  30. + new;
  31. - out:sender;
  32. - setRandomValues; // action values for cost, probability and profit
  33. - bPressed:sender;
  34. - cPressed:sender;
  35. - aPressed:sender;
  36. - dPressed:sender;
  37. - ePressed:sender;
  38. - month; // compute all necessary values and output them
  39. - output;
  40.  
  41. @end
  42.